package com.Gientech.springbucks.service;

import com.Gientech.springbucks.config.RollbackException;
import com.Gientech.springbucks.domain.dao.CoffeeQueryDto;
import com.Gientech.springbucks.domain.eo.Coffee;
import com.github.pagehelper.PageInfo;

public interface CoffeeService {
    void insertRecord();
    void insertThenRollback() throws RollbackException;
    void invokeInsertThenRollback() throws RollbackException;
    // 查询
    PageInfo<Coffee> queryBy(CoffeeQueryDto coffeeQueryDto);

    // 查询时将缓存存入Redis

    // 修改
    void updateCoffee(Coffee coffee);
    // 删除
    void deleteCoffee(Coffee coffee);

}
